import {
  request
} from "../../utils/request"


export function codeLogin(data) {
  return request({
    url: "/c_api/phoneLogin",
    method: "POST",
    data
  })
}

export function passwordLogin(data) {
  return request({
    url: "/c_api/pwdLogin",
    method: "POST",
    data
  })
}

export function userInfo() {
  return request({
    url: "/c_api/getUserInfo",
  })
}